<?php
namespace app\validate;

use think\facade\Request;
use think\Validate;

class PartnerRole extends  Validate{



    protected $rule =   [

        'permission_ids' => 'require',
        'pid'=>'require',
        'name'=>'require',
    ];

    protected $message  =   [
        'permission_ids.require' => '权限不能为空',
        'name.regex' => '名称不能为空',
        'pid.require'     => '父级角色不能为空',

    ];
}